package com.yu.demo.service;

import com.github.pagehelper.Page;
import com.yu.demo.dao.entity.User;
import com.yu.demo.pojo.dto.UserDTO;
import com.yu.demo.pojo.query.UserQuery;
import com.yu.demo.pojo.vo.ResultVO;
import com.yu.demo.pojo.vo.UserVo;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: WengYu
 * @CreateTime: 2022/05/31 14:57
 */
public interface UserService {
    /**
     * 添加用户
     * @param userDTO
     * @return
     */
    Boolean add (UserDTO userDTO);

    /**
     * 根据用户删除id
     * @param id
     * @return
     */
    Boolean delete(Long id);

    /**
     * 更新用户
     * @param userDTO
     * @return
     */
    Boolean update(UserDTO userDTO);

    /**
     * 查询用户
     * @param userQuery
     * @return
     */
    ResultVO<List<UserVo>> search (UserQuery userQuery);

}
